The code below can be used to delete the module which houses the Code. In other words, it deletes itself after running once.
You will have to goTools>Macro>Security-Trusted publishersAnd check trust accessVisual Basic EditorBefore running the code. Change"Module1"To suit.
Sub deletethismodule ()
Dim vbcom as object
Msgbox "hi, I will delete myself"
Original source: http://www.cnblogs.com/Charltsing/p/EncryptVBACode.htmlVBA code encryption is a commonplace issue, and since my VBA dumper was released, any encryption at the office level has lost its meaning. So, many people began to move to the VB package or upgrade to Vsto,delphi and other languages. However, for the vast majority of Vbaer, the problem of re-learning a language is far more than the bene
Original source: http://www.cnblogs.com/Charltsing/p/unviewable.htmlqq:564955427Email: [Email protected]I was asked to unviewable+ VBA to protect the VBA code can be cracked, so I went to the author's website to see a bit (URL).This tool protects the VBA code fairly well, bu
1:excel number of rows in a tableSheets (1). UsedRange.Rows.CountSheets (1). UsedRange.Columns.CountOrSheets (1). Range ("A65536"). End (Xlup). Rowsheets (1). Range ("A65536"). End (Xlup). ColumnA point to note is that before the Mac (Apple System) on the friend of the Excel VBA programming, with the above code will be error, can only use the following type of wording;2: CopyLine copy:' Copy the nth row in
That is, add a worksheet to the workbook, and then move out of the workbook to a new workbook, and copy the code of one module of the workbook to the new workbook before moving out. Here is the key code: '====================================================================== 'Each class list is saved as a single XLS fileActivesheet.moveChDirMyPath'Ignore dialog box, overwrite saveApplication.D
After a program is written and compiled, the running results may be correct, but there are potential problems. Oacr (Microsoft Automatic Code Analyzer) helps you analyze possible problems and security risks in software statically. It can be used to analyze drivers and applications. View the analysis result of an oacr:
Warning: The strncpy function has security risks.
For details, see Microsoft Official
From: http://blogs.msdn.com/ B /vsod/archive/2009/10/02/excel-how-to-run-c-code-behind-with-a-click-of-a-button-on-a-worksheet-without-vba-code.aspx
Excel: How to Run C # code behind with a click of a button on a worksheet, without VBA codemsdnarchive
2 Oct 2009 pm
0
OLE object controls such as command button, ch
Sometimes, when using Word for text editing, suddenly encountered power, or computer automatic shutdown, crash, and other failures, resulting in the work of hard to do out of all the results, is a lot of netizens are very crazy things. Today, I'm going to teach you. Use VBA code to automate backup so that Word can be automatically backed up every few minutes without affecting the file being edited. Let's ge
Series Navigation
(a) Introduction to lexical analysis
(ii) input buffering and code positioning
(c) Regular expressions
(iv) Construction of NFA
(v) Conversion of DFA
(vi) Structural lexical analyzer
(vii) Summary
One, input bufferBefore describing how to perform lexical analysis, let's start with a less-than-mentioned question-how to read a stream of characters from a
symbols, produce a diagnostic. varDiagnostic = Diagnostic.create (Rule, namedtypesymbol.locations[0], namedtypesymbol.name); Context. Reportdiagnostic (diagnostic); } }Running F5, the system returns a new VS replica window, we create a new ConsoleApp application,We can set breakpoints in the parser project to see the specific effect of the operation, such as I manually change program to PROGRAM2, the parser will detect changes, run the parser
1. Lexical analyzer
Function: Read the input characters of the source program and form them into a word base to generate and output a lexical unit sequence.
Ii. Design Principles
1) symbol classification of c programming language: keywords, identifiers, constants, operators, operators
2) lexical analyzer Dual Output:
3) Regular Expression and state transition diagram
4) program description:
1> open the so
Method 1: Use VBA's original properties, methods, and worksheet functions as much as possible
Because the Excel object is up to odd, the object's properties, methods, and events are numerous and may not be fully understood by beginners, which results in a code snippet that programmers often write about the same functions as the properties and methods of Excel objects. The efficiency of these snippets is obviously different from the properties of the
BackgroundThe business needs to write all the corresponding pages according to the detailed design documentProblemHeavy workload, 11 large tables (dozens of hundreds of fields) time tight 3 days to completeCoreThere is a complete table design that can be edited manually through Excel.New issuesNormal field is not a problem, can increase the workload of the dictionary after a sudden increase, this particularity makes the work difficult and volume of the manual operation of Excel poses a challenge
Series navigation
(1) Introduction to lexical analysis
(2) Input buffering andCodePositioning
(3) Regular Expressions
(4) construct NFA
(5) DFA Conversion
(6) construct a lexical analyzer
I. input buffer
Before introducing how to perform lexical analysis, let's talk about a problem that is not very mentioned-how to read the sequence stream from the source file. Why is this issue so important? The reason is that there is a r
raised above.) )Parsing code Step two: show the current_function call relationship.After the function call diagram is established, it is assumed that to display the current_function call relationship, simply traverse the graph with current_function as the starting point.Now I'm just a couple of things up there. The next step is to make sure that you meet so many problems. I believe that there are more ways than difficulties. Come on. Copyright notice
"count value" (count), which determines the degree of detail of the analysis, the smaller the value, the more frequent the sampling, and currently consumes a lot of system resources. Each counter can choose to sample only kernel code, sample user state code, or all samples. Finally, some events contain a "unit mask", which is used to further limit the types of events to be counted. 1.1 Opcontrol main param
The error message given by Excel VBA error is minimal and requires the full use of various tools for debugging.1. Compilation errorsCommon compilation errors include the following:The wrong source code format, such as missing then after if: In the editor, the line turns red.Incorrect syntax structures, such as if and end if do not correspond: The code will be giv
When you write VBA code in Excel, the most common thing you can do is manipulate the data in the cells in the form. I'll summarize here how to manipulate the data in a cell from VBA code.The Range object is required to manipulate cells in VBA code, and range is a class provi
The VBA basics are coming to an end in everyone's attention. There are many classic VBA operations that we just briefly introduce, to use VBA skillfully, You need to digest and absorb it slowly, and then summarize and improve it in practice. Finally, we collected common VBA code
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.